package com.wxh.bomb.netty.myrpc.service;

import com.wxh.bomb.netty.myrpc.annotation.Service;
import com.wxh.bomb.netty.myrpc.api.UserService;
import com.wxh.bomb.netty.myrpc.bean.User;

/**
 * @author wxh
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public User getUser(int userId) {
        User user = new User();
        user.setUserId(userId);
        user.setUserCode("U201710010000" + userId);
        user.setUserName("王星火");
        user.setAge("20");
        user.setAddress("湖北省武汉市");
        return user;
    }
}
